export default {
    // 
    path: "shop",
    component: function(resolve) {
        require(["../views/shop/shop.vue"], resolve);
    },
    meta: {
        permission: [
            "01-01",
        ]
    },
    children: [{
        // 全部订单
        path: "allOrder",
        component: function(resolve) {
            require(["../views/shop/order/allOrder/index.vue"], resolve);
        },
        meta: {
            permission: ["01-01"]
        },
        children: [{
            path: "list",
            component: function(resolve) {
                require(["../views/shop/order/allOrder/list.vue"], resolve);
            },
            meta: {
                permission: ["01-01"]
            }
        }, {
            path: "detail",
            component: function(resolve) {
                require(["../views/shop/order/allOrder/detail.vue"], resolve);
            },
            meta: {
                permission: ["01-01"]
            }
        }, {
            // 批量发货
            path: "deliver",
            component: function(resolve) {
                require(["../views/shop/order/allOrder/deliver.vue"], resolve);
            },
            meta: {
                permission: ["01-01"]
            }
        }, {
          // 设置发货
          path: "setShip",
          component: function (resolve) {
            require(["../views/shop/order/allOrder/setShip.vue"], resolve);
          },
          meta: {
            permission: ["01-01"]
          }
        }]
    }, {
        // 售后订单
        path: "afterOrder",
        component: function(resolve) {
            require(["../views/shop/order/afterOrder/index.vue"], resolve);
        },
        meta: {
            permission: ["01-01"]
        },
        children: [{
            path: "list",
            component: function(resolve) {
                require(["../views/shop/order/afterOrder/list.vue"], resolve);
            },
            meta: {
                permission: ["01-01"]
            }
        }, {
            path: "detail",
            component: function(resolve) {
                require(["../views/shop/order/afterOrder/detail.vue"], resolve);
            },
            meta: {
                permission: ["01-01"]
            }
        }]
    }, {
        // 维权订单
        path: "safeguardOrder",
        component: function(resolve) {
            require(["../views/shop/order/safeguardOrder/index.vue"], resolve);
        },
        meta: {
            permission: ["01-01"]
        },
        children: [{
            path: "list",
            component: function(resolve) {
                require(["../views/shop/order/safeguardOrder/list.vue"], resolve);
            },
            meta: {
                permission: ["01-01"]
            }
        }, {
            path: "detail",
            component: function(resolve) {
                require(["../views/shop/order/safeguardOrder/detail.vue"], resolve);
            },
            meta: {
                permission: ["01-01"]
            }
        }]
    }, {
        // 评价管理
        path: "evaluate",
        component: function(resolve) {
            require(["../views/shop/order/evaluate/index.vue"], resolve);
        },
        meta: {
            permission: ["01-01"]
        },
        children: [{
            path: "list",
            component: function(resolve) {
                require(["../views/shop/order/evaluate/list.vue"], resolve);
            },
            meta: {
                permission: ["01-01"]
            }
        }, {
            path: "detail",
            component: function(resolve) {
                require(["../views/shop/order/evaluate/detail.vue"], resolve);
            },
            meta: {
                permission: ["01-01"]
            }
        }]
    }, {
        // 全部商品
        path: "allProduct",
        component: function(resolve) {
            require(["../views/shop/product/allProduct/index.vue"], resolve);
        },
        meta: {
            permission: ["01-01"]
        },
        children: [{
            path: "list",
            component: function(resolve) {
                require(["../views/shop/product/allProduct/list.vue"], resolve);
            },
            meta: {
                permission: ["01-01"]
            }
        }, {
            path: "detail",
            component: function(resolve) {
                require(["../views/shop/product/allProduct/detail.vue"], resolve);
            },
            meta: {
                permission: ["01-01"]
            }
        }]
    }]
};